﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Hwh_Shop.Models
{
	/// <summary>
	/// 统一返回类 泛型类
	/// </summary>
	/// <typeparam name="T"></typeparam>
	public class ApiResult<T> //T 表示为泛类
	{
		/// <summary>
		/// 返回码
		/// </summary>
		public int Code { get; set; }

		/// <summary>
		/// 错误信息
		/// </summary>
		public string Message { get; set; }

		//数据 类型不定  泛型
		/// <summary>
		/// 数据
		/// </summary>
		public T Data { get; set; }
	}
}
